﻿using InnoWeb.CEND.Core.Model.Page;
using InnoWeb.CEND.Data.Mapping.BaseMapping;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace InnoWeb.CEND.Data.Mapping.Page
{
    public class CategoryMapping:BaseMappingConfiguration<Category,int>
    {
        public CategoryMapping()
        {
            this.Property(a => a.ParentCategoryId).IsRequired();
            this.Property(a => a.Name).IsRequired().HasMaxLength(50);
            this.Property(a => a.NameTR).IsRequired().HasMaxLength(50);

           // this.HasRequired(a => a.Page).WithRequiredDependent();
        }
    }
}
